package com.lixingqu.mvpdemo.net;

import com.lixingqu.mvpdemo.entity.HttpResultEntity;
import com.lixingqu.mvpdemo.entity.NewsEntity;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by lixingqu on 2016/12/2.
 */

public interface HttpService {
    @GET("txapi/{roottitle}/{title}")
    Observable<HttpResultEntity<List<NewsEntity>>> getContent(@Path("roottitle") String roottitle, @Path("title") String title, @Query("num") String num, @Query("page") String page);
}
